package com.cxs.musicplaywidget;

import java.util.Optional;

/**
 * @ClassName Person
 * @Author cxs
 * @Version 1.0
 * @Description TODO
 * @Date 2022/03/18
 */
public class Person {
    private String name;
    private int age;
    private float height;
    private Optional<String> proxy = null;

    public Person() {
    }

    public Person(int age, String name) {
        this.age = age;
        this.name = name;
    }

    public Person(String name, int age, Optional<String> proxy) {
        this.name = name;
        this.age = age;
        this.proxy = proxy;
    }

    public String getName() {
        return name;
    }

    public int getAge() {
        return age;
    }

    public void setProxy(Optional<String> proxy) {
        this.proxy = proxy;
    }

    public Optional<String> proxy() {
        return proxy;
    }

    @Override
    public String toString() {
        return "Person{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", height=" + height +
                ", proxy=" + proxy +
                '}';
    }
}
